Socket
Socket
Sign inDemoInstall

bpmn-js-bpmnlint

Package Overview
Dependencies
33
Maintainers
9
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bpmn-js-bpmnlint

bpmn-js integration for bpmnlint


Version published
Maintainers
9
Created

Changelog

Source

0.21.0

  • DEPS: update to bpmnlint@8.3.1
  • DEPS: update to bpmn-js@12

Readme

Source

bpmn-js-bpmnlint

CI

Integrates bpmnlint into bpmn-js.

Screenshot

See this extension in action as part of the bpmnlint playground.

Usage

Integrate the linter into bpmn-js:

import lintModule from 'bpmn-js-bpmnlint';

import 'bpmn-js-bpmnlint/dist/assets/css/bpmn-js-bpmnlint.css';

import BpmnModeler from 'bpmn-js/lib/Modeler';

import bpmnlintConfig from './.bpmnlintrc';

const modeler = new BpmnModeler({
  linting: {
    bpmnlint: bpmnlintConfig
  },
  additionalModules: [
    lintModule
  ]
});

Bundle Lint Rules

Use an appropriate plugin/loader for your module bundler (cf. rollup-plugin-bpmnlint, bpmnlint-loader) to bundle the bpmnlint configuration directly with your application as shown above.

Alternatively, pack your local .bpmnlintrc file using the bpmnlint-pack-config utility:

bpmnlint-pack-config -c .bpmnlintrc -o bundled-config.js

Plug-in Lint Rules

Provide the packed lint rules via the linting.bpmnlint option. You may set it dynamically, too:

const linting = modeler.get('linting');

linting.setLinterConfig(bpmnlintConfig);

Resources

Development Setup

npm install
npm run dev

License

MIT

FAQs

Last updated on 12 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc